﻿/*-----------------------------------------------------------------------
 * <copyright file="DateExport.cs" company="O-RID">
 *     Copyright (c)2010 O-RID Co.,Ltd.
 * </copyright>
 * <author>Li Dawei</author>
 * <summary> 
 *          ICommand的实现
 *          作成日：06/13/2010
 * </summary>
 *-----------------------------------------------------------------------
 */

namespace Orid.Management.Statistics.OperatorUnitMangement.Command
{
    using System;

    /// <summary>
    /// 数据导出类 继承 ICommand
    /// </summary>
    public class DateExport : ICommand
    {   
        /// <summary>
        /// 开始执行 ExecBegin
        /// </summary>
        public event EventHandler<EventArgs> ExecBegin;      
     
        #region ICommand 成员

        /// <summary>
        /// 执行命令 Exec 调用OnExecBegin 方法
        /// </summary>
        public void Exec()
        {
            this.OnExecBegin(null, null);
        }

        #endregion

        /// <summary>
        /// 开始执行 OnExecBegin
        /// </summary>
        /// <param name="sender"> object of Sender </param>
        /// <param name="e"> e of Sender </param>
        protected void OnExecBegin(object sender, EventArgs e)
        {
            if (this.ExecBegin != null)
            {
                this.ExecBegin(this, e);
            }
        }
    }
}
